package com.example.springbootstartermqttprovider.controller;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.List;

// Nested class for LoopResultList
@XmlRootElement(name = "lists")
public class LoopResultListVo implements Serializable {

    private String name;
    private List<LoopResult> list;

    // Getter and Setter for name
    @XmlElement(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    // Getter and Setter for list
    @XmlElement(name = "list")
    public List<LoopResult> getList() {
        return list;
    }

    public void setList(List<LoopResult> list) {
        this.list = list;
    }

    // Nested class for LoopResult
    public static class LoopResult implements Serializable {

        private String elecChequeNo;
        private String acceptNo;
        private String serialNo;
        private String transDate;
        private String bespeakDate;
        private String promiseDate;
        private String acctNo;
        private String acctName;
        private String payeeAcctNo;
        private String payeeName;
        private String payeeType;
        private String payeeBankName;
        private String payeeAddress;
        private double amount;
        private int sysFlag;
        private int remitLocation;
        private String note;
        private int transStatus;
        private String seqNo;

        // Getters and Setters
        @XmlElement(name = "elecChequeNo")
        public String getElecChequeNo() {
            return elecChequeNo;
        }

        public void setElecChequeNo(String elecChequeNo) {
            this.elecChequeNo = elecChequeNo;
        }

        @XmlElement(name = "acceptNo")
        public String getAcceptNo() {
            return acceptNo;
        }

        public void setAcceptNo(String acceptNo) {
            this.acceptNo = acceptNo;
        }

        @XmlElement(name = "serialNo")
        public String getSerialNo() {
            return serialNo;
        }

        public void setSerialNo(String serialNo) {
            this.serialNo = serialNo;
        }

        @XmlElement(name = "transDate")
        public String getTransDate() {
            return transDate;
        }

        public void setTransDate(String transDate) {
            this.transDate = transDate;
        }

        @XmlElement(name = "bespeakDate")
        public String getBespeakDate() {
            return bespeakDate;
        }

        public void setBespeakDate(String bespeakDate) {
            this.bespeakDate = bespeakDate;
        }

        @XmlElement(name = "PromiseDate")
        public String getPromiseDate() {
            return promiseDate;
        }

        public void setPromiseDate(String promiseDate) {
            this.promiseDate = promiseDate;
        }

        @XmlElement(name = "acctNo")
        public String getAcctNo() {
            return acctNo;
        }

        public void setAcctNo(String acctNo) {
            this.acctNo = acctNo;
        }

        @XmlElement(name = "acctName")
        public String getAcctName() {
            return acctName;
        }

        public void setAcctName(String acctName) {
            this.acctName = acctName;
        }

        @XmlElement(name = "payeeAcctNo")
        public String getPayeeAcctNo() {
            return payeeAcctNo;
        }

        public void setPayeeAcctNo(String payeeAcctNo) {
            this.payeeAcctNo = payeeAcctNo;
        }

        @XmlElement(name = "payeeName")
        public String getPayeeName() {
            return payeeName;
        }

        public void setPayeeName(String payeeName) {
            this.payeeName = payeeName;
        }

        @XmlElement(name = "payeeType")
        public String getPayeeType() {
            return payeeType;
        }

        public void setPayeeType(String payeeType) {
            this.payeeType = payeeType;
        }

        @XmlElement(name = "payeeBankName")
        public String getPayeeBankName() {
            return payeeBankName;
        }

        public void setPayeeBankName(String payeeBankName) {
            this.payeeBankName = payeeBankName;
        }

        @XmlElement(name = "payeeAddress")
        public String getPayeeAddress() {
            return payeeAddress;
        }

        public void setPayeeAddress(String payeeAddress) {
            this.payeeAddress = payeeAddress;
        }

        @XmlElement(name = "amount")
        public double getAmount() {
            return amount;
        }

        public void setAmount(double amount) {
            this.amount = amount;
        }

        @XmlElement(name = "sysFlag")
        public int getSysFlag() {
            return sysFlag;
        }

        public void setSysFlag(int sysFlag) {
            this.sysFlag = sysFlag;
        }

        @XmlElement(name = "remitLocation")
        public int getRemitLocation() {
            return remitLocation;
        }

        public void setRemitLocation(int remitLocation) {
            this.remitLocation = remitLocation;
        }

        @XmlElement(name = "note")
        public String getNote() {
            return note;
        }

        public void setNote(String note) {
            this.note = note;
        }

        @XmlElement(name = "transStatus")
        public int getTransStatus() {
            return transStatus;
        }

        public void setTransStatus(int transStatus) {
            this.transStatus = transStatus;
        }

        @XmlElement(name = "seqNo")
        public String getSeqNo() {
            return seqNo;
        }

        public void setSeqNo(String seqNo) {
            this.seqNo = seqNo;
        }
    }
}